package business.report.impl;

import business.report.NotaryOfficeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.NotaryOffice;
import report.domain.NotaryOfficeCriteria;
import report.mapper.NotaryOfficeMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "notaryOfficeService")
public class NotaryOfficeServiceImpl implements NotaryOfficeService{
    @Autowired
    NotaryOfficeMapper notaryOfficeMapper;

    @Override
    public List<NotaryOffice> getNotaryOffice() {
        NotaryOfficeCriteria criteria = new NotaryOfficeCriteria();
        criteria.createCriteria().getAllCriteria();
        return notaryOfficeMapper.selectByExample(criteria);
    }
}
